package com.liaowei.model.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageParam {

    @Min(value = 1,message = "当前页最小为1")
    private int pageNum;  // 当前页

    @Min(value = 1,message = "分页大小最小为1")
    private int pageSize; // 分页大小

}
